<?php

namespace App\Http\Requests\AccountController;

use Illuminate\Foundation\Http\FormRequest;

class AccountLogRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'coin_id' => ['nullable', 'exists:coins,id'],
            'type' => ['nullable'],
            'start' => ['nullable', 'date'],
            'end' => ['nullable', 'date'],
        ];
    }
}
